package com.heima.apis.wemedia;

import com.heima.common.constans.wemedia.WemediaContans;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

/**
 * 图片上传API
 */
public interface WmMaterialControllerApi {

    /**
     * 上传图片
     *
     * @param multipartFile
     * @return
     */
    ResponseResult uploadPicture(MultipartFile multipartFile);


    ResponseResult findList(@RequestBody WmMaterialDto dto);


    ResponseResult delPicture(@PathVariable("id") Integer id);


    ResponseResult cancelCollectionMaterial(@PathVariable("id") Integer id);


    ResponseResult collectionMaterial(@PathVariable("id") Integer id);



}